package com.olclass.web.dao;

import com.olclass.web.domain.Major;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * FileName: RoleRepository.java
 * Author:   Administrator
 * Date:     2021/3/22 19:52
 * Description:
 */
public interface MajorRepository extends CrudRepository<Major, String>, JpaSpecificationExecutor<Major> {

    public List<Major> queryMajorsByPid(String pid);

    public void deleteByPid(String pid);

    public void deleteById(String id);
}